/**
 *删除设备
 */
'use strict';

const conn = require('../../libs/DB/Conn');
const operationRecord = require("../sys/operationRecordAction");

module.exports = async function (params) {
    let updateSql = `UPDATE device_file SET delete_sign = 2 WHERE device_id in (?)`;
    await conn(updateSql, [params.deviceIds]);
    await operationRecord(params);
    return { success: true };
};
